<template>
	<view class="content">
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="info">
					<view class="title font24 fontw">
						{{item.name}}
					</view>
					<view class="des font18">
						{{item.des}}
					</view>
					<view class="icon" @click="showPopup = true">


						<image src="../../../static/images/technician/share.png" mode="aspectFit"></image>


						<image src="../../../static/images/technician/share.png" mode="aspectFit"></image>

						<image src="/technicianadd/static/images/share.png" mode="aspectFit"></image>



						<image src="/technicianadd/static/images/share.png" mode="aspectFit"></image>

					</view>
				</view>
				<view class="image">
					<image :src="item.image" mode="aspectFit"></image>
				</view>
			</view>
		</view>
		<clh-popup :position="position" v-model="showPopup" :canSlide="false">
			<view class="popup">
				<view class="title font28 fontw">
					分享设置
				</view>
				<view class="des font22">
					分享成功后自动上传
				</view>
				<view class="left">
					<view class="describe font28 fontw">
						文章名称
					</view>
					<view class="container font26">
						入冬了该怎么保养...
					</view>
				</view>
				<view class="left">
					<view class="describe font28 fontw">
						分享作者
					</view>
					<view class="container font26">
						小乔
					</view>
				</view>
				<view class="text">
					<view class="describe font28 fontw">
						分享心得
					</view>
					<view class="uni-textarea">
						<textarea @blur="bindTextAreaBlur" maxlength="20" :auto-height="true" placeholder="输入本次分享心得"
							placeholder-style="font-size: 18rpx;color: #666666;" :editable="false" :disabled="false" />
					</view>
				</view>
				<view class="btn font28" @click="dianji">
					分享
				</view>
			</view>
		</clh-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				position: 'bottom',
				showPopup: false,
				list: [{
					name: '#养生误区不要踩，你需要认识....养生误区不要踩，你需要认识',
					des: '拔罐拔的时间越久，效果越好？.......养生误区不要踩，你需要认识',
					image: '/static/logo.png'
				}, {
					name: '#养生误区不要踩，你需要认识....',
					des: '拔罐拔的时间越久，效果越好？.......',
					image: '/static/logo.png'
				}, {
					name: '#养生误区不要踩，你需要认识....',
					des: '拔罐拔的时间越久，效果越好？.......',
					image: '/static/logo.png'
				}, {
					name: '#养生误区不要踩，你需要认识....',
					des: '拔罐拔的时间越久，效果越好？.......',
					image: '/static/logo.png'
				}, {
					name: '#养生误区不要踩，你需要认识....',
					des: '拔罐拔的时间越久，效果越好？.......',
					image: '/static/logo.png'
				}]
			};
		},
		methods: {
			bindTextAreaBlur(e) {
				console.log(e, '1');
			},
			dianji() {
				console.log('2');
			}
		}
	}
</script>

<style lang="scss">
	.content {
		padding: 36rpx 34rpx;

		.list {
			.item {
				display: flex;
				align-items: center;
				margin-bottom: 18rpx;
				background-color: #fff;
				border-radius: 21rpx;
				padding: 21rpx 33rpx;

				.info {
					flex: 1;

					.title {
						margin-bottom: 15rpx;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 1;
						/* 定义显示的行数 */
						overflow: hidden;
						text-overflow: ellipsis;
					}

					.des {
						color: #666666;
						margin-bottom: 15rpx;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 1;
						/* 定义显示的行数 */
						overflow: hidden;
						text-overflow: ellipsis;
					}

					.icon {
						width: 31rpx;
						height: 31rpx;
						display: flex;
						align-items: center;

						image {
							width: 31rpx;
							height: 31rpx;
						}
					}
				}

				.image {
					width: 104rpx;
					height: 104rpx;
					background: #1EB481;
					border-radius: 11rpx;
					overflow: hidden;
					margin-left: 16rpx;

					image {
						width: 104rpx;
						height: 104rpx;
					}
				}
			}
		}

		.popup {
			padding: 27rpx 40rpx;

			.title {
				margin-bottom: 21rpx;
			}

			.des {
				margin-bottom: 61rpx;
			}

			.left {
				justify-content: space-between;

				.describe {
					margin-bottom: 21rpx;
				}

				.container {
					color: #666666;
				}
			}

			.text {
				display: flex;
				flex-direction: column;
				margin-bottom: 55rpx;

				.describe {
					margin-bottom: 21rpx;
				}

				.uni-textarea {
					min-height: 181rpx;
					background: #7E7E7E30;
					border-radius: 20rpx;
					padding: 27rpx 24rpx;
				}
			}

			.btn {
				height: 80rpx;
				background: linear-gradient(0deg, #24B682 0%, #97DD97 100%);
				border-radius: 100rpx;
				color: #FFFFFF;
				text-align: center;
				line-height: 80rpx;
			}
		}
	}
</style>